<%@ Page Language="vb" AutoEventWireup="false" Codebehind="RenewMembership.aspx.vb" Inherits="Renew.RenewMembership"%>
<!DOCTYPE HTML PUBLIC "-//W3C//Dtd HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>Renew Membership</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" />
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1" />
		<meta name="vs_defaultClientScript" content="JavaScript" />
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
		<link href="Styles.css" type="text/css" rel="stylesheet" />
	    <style type="text/css">
            .style1
            {
                text-decoration: underline;
            }
        </style>
	</head>
	<body>
		<form id="Form1" method="post" runat="server">
			<h1 align="center" class="MainRow2">NENA Renewal Membership</h1>
			<ul>
				<li>
					<strong>Membership year starts on July 1st of the current year</strong>
				</li>
				<li>
					<strong>Please ensure your demographics are up to date before you apply or you may not 
					recieve email or mail from NENA</strong>
				</li>
			</ul>
			<a href="UpdateMyDemographics.aspx">Click this link to update your demographics 
				before renewing</a>&nbsp;
			<br/>			
            <h3><u>Make Payments</u></h3>				
				<br/>
			<ul>
				<li>
					<strong>Membership fees can be paid by clicking <u>Make Payment</u> on one of the below options</strong>
				</li>
			</ul>			
                <asp:ListView ID="ListViewIncompleteTransactions" runat="server"
                    OnItemCommand="ListViewIncompleteTransactions_Command">
                    <AlternatingItemTemplate>
                        <tr style="background-color:#FFF8DC;">
                            <td>
                                <asp:Label ID="TransactionNameLabel" runat="server" 
                                    Text='<%# Eval("TransactionName") %>' />
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                    <LayoutTemplate>
                        <table id="Table1" runat="server">
                            <tr id="Tr1" runat="server">
                                <td id="Td1" runat="server">
                                    <table ID="itemPlaceholderContainer" runat="server" border="1" 
                                        style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;font-family: Verdana, Arial, Helvetica, sans-serif;" width="100%">
                                        <tr id="Tr2" runat="server" style="background-color:#DCDCDC;color: #000000;">
                                            <th id="Th1" runat="server">
                                                Pay by PayPal</th>
                                            <th id="Th4" runat="server">
                                                Pay by Check</th>
                                            <th id="Th2" runat="server">
                                                Fees for</th>
                                            <th id="Th3" runat="server">
                                                Invoice Type</th>
                                        </tr>
                                        <tr ID="itemPlaceholder" runat="server">
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr id="Tr3" runat="server">
                                <td id="Td2" runat="server" 
                                    style="text-align: center;background-color: #CCCCCC;font-family: Verdana, Arial, Helvetica, sans-serif;color: #000000;">
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                    <SelectedItemTemplate>
                        <tr style="background-color:#008A8C;font-weight: bold;color: #FFFFFF;">
                            <td>
                                <asp:Label ID="Label3" runat="server" 
                                    Text='<%# Eval("TransactionID_NENA") %>' />
                                <asp:Label ID="TransactionNameLabel" runat="server" 
                                    Text='<%# Eval("TransactionName") %>' />
                            </td>
                        </tr>
                    </SelectedItemTemplate>
                    <EmptyDataTemplate>
                        <table id="Table2" runat="server" 
                            style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;">
                            <tr>
                                <td>
                                    Thank you for visiting, it appears you are fully subscribed. <br />We will notify you by email for new subscriptions.</td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                    <ItemTemplate>
                        <tr style="background-color:#DCDCDC;color: #000000;">
                            <td>
                            <asp:Button ID="btnMakePayPalPayment" runat="server" 
                            CommandArgument='<%# Eval("TransactionID_NENA") %>'  CommandName="PaybyPalPal"
                            Text="Make Payment using PayPal" />
                            </td>
                            <td>
                            <asp:Button ID="btnMakeOtherPayment" runat="server" 
                            CommandArgument='<%# Eval("TransactionID_NENA") %>'  CommandName="PaybyOther"
                            Text="Make Payment by Check" />
                            </td>
                            <td>
                                <asp:Label ID="lblTransactionName" runat="server" 
                                    Text='<%# Eval("TransactionName") %>' />
                            </td>
                            <td>
                                <asp:Label ID="Label2" runat="server" 
                                    Text='<%# GetFeebyTransactionType(Eval("TransactionType")) %>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:ListView>
				<br/>
				<br/>
				<asp:Label id="Label1" runat="server" BorderColor="White" ForeColor="Red">Check the below box before making any payments</asp:Label><br/>
				<asp:CheckBox id="checkVerify" runat="server" Text="Yes, my Demographics are up to date" Font-Bold="True"></asp:CheckBox>
				<br/>
				<asp:label id="lblMessage" runat="server" CssClass="ErrorTextBox"></asp:label>
			<p>
				<asp:Button id="btnCancel" runat="server" Text="Return to Membership Website" CausesValidation="False"></asp:Button>
			</p>
		</form>
	</body>
</html>
